new Vue({
	el: '#activeDateil',
	data: {
		activeTitle:"",
		activeZb:"",
		activeTime:"",
		activeAddress:"",
		activeGuide:"",
		scheduledData:"",
    	activeId:"",
    	currentWebview:""
	},
	methods: {
		plusReady: function() {
			this.currentWebview = plus.webview.currentWebview();
			this.activeTitle=this.currentWebview.meetingName;
			this.activeZb=this.currentWebview.sponsor;
			this.activeTime=this.currentWebview.startTime+" -  "+this.currentWebview.endTime;
			this.activeAddress=this.currentWebview.address;
			this.activeGuide=this.currentWebview.guide;
			this.activeId=this.currentWebview.id;
		},
		getMeeting: function() {
			var context = this;
			var lan = "ZH"
			if(localStorage.getItem("localLang") == 0) {
				lan = "ZH";
			} else {
				lan = "EN";
			}
			var ajax = {
				"language": lan
			}
			ajAjax("app/meeting/getMeeting.do", ajax, function(data) {
				context.list = data.Rows;
			}, function(err) {

			});
			var datajson = {
				id:'50edf050a7964711b0d57dd96b5bc3e4'
//				id:this.currentWebview.id
			};
			ajAjax("app/agdenda/getAgendDetail.do", datajson, function(data) {
				context.scheduledData = data.Rows;
			}, function(err) {
				mui.toast("查询失败")
			});
		},
		
		bm: function() {
			mui("#popover").popover('toggle', document.getElementById("div"));
		},
		person: function() {
			var context = this;
			commonOpenWindow("../mine/sign-up-organize.html", "../mine/sign-up-organize.html",  context.activeId, "0")
		},
		jg: function() {
			var context = this;
			commonOpenWindow("../mine/sign-up-personal.html", "sign-up-personal.html", context.activeId, "0")
		},
		schedlu: function() {
			commonOpenWindow("../active/schedule-detail.html", "schedule-detail.html", null, "0")
		}
	},
	mounted: function() {
		if(window.plus) {
			this.plusReady();
		} else {
			document.addEventListener("plusready", this.plusReady, false);
		}
	}
});